package pth.authentication.config;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 认证配置文件.
 *
 * @author cocoon
 */
@ConfigurationProperties("cocoon-security.authentication")
@Data
public class AuthenticationProperties implements Serializable {


  /**
   * 是否启用.
   */
  private boolean enable = true;


  /**
   * 白名单.
   */
  private Set<String> whiteList = new HashSet<>();

  /**
   * 默认超管用户名.
   */
  private String defaultAdminUsername = "admin";

  /**
   * tokenName.
   */
  private String tokenName = "token";

}
